package com.qf.air.config;

import com.qf.air.interceptor.AuthenticationInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/11/8 10:50
 */
@Configuration
public class InterceptorConfig implements WebMvcConfigurer {

    @Autowired
    private AuthenticationInterceptor interceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //registry.addInterceptor(interceptor)
        //        .addPathPatterns("/**")
        //        .excludePathPatterns("/user/**")
        //        .excludePathPatterns("/login.html")
        //        .excludePathPatterns("/css/**")
        //        .excludePathPatterns("/js/**")
        //        .excludePathPatterns("/img/**")
        //        .excludePathPatterns("/layui/**")
        //        .excludePathPatterns("/static/**");
    }
}
